{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "c7619558-1824-46fb-aa12-aa188a47fe14",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "排序后的列表（使用 sorted()）:  [5, 7, 18, 23, 32, 32, 34, 45, 62, 90]\n"
     ]
    }
   ],
   "source": [
    "# 定义一个包含10个数的列表\n",
    "numbers = [34, 7, 23, 32, 5, 62, 32, 18, 90, 45]\n",
    "\n",
    "# 使用 sorted() 函数进行排序，返回一个新的排序后的列表\n",
    "sorted_numbers = sorted(numbers)\n",
    "\n",
    "# 打印排序后的列表\n",
    "print(\"排序后的列表（使用 sorted()）: \", sorted_numbers)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "32fdffc7-dfac-45a1-9e2e-394cd1620d58",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.13.0"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
